$(document).ready(function() {
	
	//导航条
	//库存管理导航条
	
	//采购订单按钮
	$("#purchaseOrderButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"editPurchaseOrder");
	});
	
	//待审核申请按钮
	$("#waitToExameButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"showExameStockManage");
	});
	
	//进行中的任务
	$("#resumeButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"showResumeStockManage");
	});
	
	//收货入库按钮
	$("#receiveMaterialButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"receiveMaterial");
	});
	
	//入库申请按钮
	$("#inStockApplyButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"showInStockApply");
	});
	
	//出库申请按钮
	$("#outStockApplyButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"showOutStockApply");
	});
	
	//退货订单按钮
	$("#returnMaterialButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"editReturnApply");
	});
	
	//库存查询按钮
	$("#showStockButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"showStock");
	});
	
	//采购记录
	$("#purchaseOrderRecordButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"showPurchaseOrderRecord");
	});
	
	//退货记录
	$("#returnApplyRecordButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"showReturnApplyRecord");
	});
	
	//入库记录
	$("#inStockApplyRecordButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"showInStockApplyRecord");
	});
	
	//出库记录
	$("#outStockApplyRecordButton").on("click", function() {
		$("#contentIframe", parent.document.body).attr("src",
				JSP_PRE_URL+"showOutStockApplyRecord");
	});
	
});